
using System;

namespace ComBrowser
{


	public class StyleSheet
	{

		public static string CSS {
			get {
				
				decimal size = 1.05m;
				
				if (Settings.TextSize == 0)
					size = .85m;
				
				if (Settings.TextSize == 1)
					size = 1.05m;
				
				if (Settings.TextSize == 2)
					size = 1.15m;
				
				string font = "Helvetica, Arial, sans-serif";
				if(Settings.Font == 0)
				   font = "\"Times New Roman\",Times, serif";
				if(Settings.Font == 1)
				   font = "Helvetica, Arial, sans-serif";
				if(Settings.Font == 2)
				   font = "\"Marker Felt\"";
					
				string color = "#5B5437";
				string background = "#FcF0C0";
				
				if(Settings.ColorScheme==0)
				{
					color = "#000000";
				    background = "#FFFFFF";
				}

			    if(Settings.ColorScheme==1)
				{
					color = "#52301C";
				    background = "#F5E6AC";
				}

				if(Settings.ColorScheme==2)
				{
					color = "#E5642F";
				    background = "#4C382A";
				}

				if(Settings.ColorScheme==3)
				{
					color = "#260101";
				    background = "#F29C50";
				}
				
				return string.Format (@"<style>
		body {{
		clear:both;
		color:{0};
		background:{1};
		font-family:{2};
		font-size:{3}em;
		font-size-adjust:none;
		font-stretch:normal;
		font-style:normal;
		font-variant:normal;
		font-weight:normal;
		//line-height:1.1em;
		margin:5px 5px 0px 5px;

}}

h1 {{
		text-align: center;
		font-size:1.3em;
        font-weight:normal;
        margin:0px 0px 0px 0px;
}}
</style>",color,background,font,size);
			}
		}
		
		
	}
}


